import React, {Component} from 'react';
import {
    Button,
    View,
    Text,
} from 'react-native'
// import { NavigationActions } from 'react-navigation'

class ViewThree extends Component{

    static navigationOptions = {
        headerTitle:'ViewThree'
    }

    render(){
        const datas=this.props.navigation.state.params;
        return (
            <View>
              <Text>你好，{datas.name}!</Text>
              <Button
                  onPress={() => { this.props.navigation.navigate('One') }}
                  title='点击进入ViewOne'
              />
          </View>
        )
    }

}

export default ViewThree;
